﻿<controls:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="InteractChartLib.RightClickContextMenu"
           Width="272" Height="235"
           Title="Graph options" UseLayoutRounding="True" BorderThickness="2" HasCloseButton="False" IsHitTestVisible="True" IsTabStop="False" mc:Ignorable="d" Background="{x:Null}" OverlayBrush="{x:Null}">
  <Grid x:Name="LayoutRoot" Margin="2">
    <Grid.RowDefinitions>
      <RowDefinition />
      <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>

    <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
    <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
  	<ListBox x:Name="GraphOptionsListBox" Height="159" VerticalAlignment="Top" Width="248" >
  		<ListBox.Resources>
  			<DataTemplate x:Key="GraphOptionsDataTemplate">
  				<Grid>
				
				<StackPanel Orientation="Vertical">
				    <StackPanel Orientation="Horizontal">
  					<Image HorizontalAlignment="Right"  VerticalAlignment="Bottom" />
					<TextBlock Text="Zoom +"></TextBlock>
					</StackPanel>
				    <StackPanel Orientation="Horizontal">
  					<Image HorizontalAlignment="Right" VerticalAlignment="Bottom" />
					<TextBlock Text="Zoom -"></TextBlock>
					</StackPanel>
				    <StackPanel Orientation="Horizontal">
  					<Image HorizontalAlignment="Right" Height="0" VerticalAlignment="Bottom" />
					<TextBlock  Text="Zoom Window"></TextBlock>
					</StackPanel>
				</StackPanel>
  				</Grid>
  			</DataTemplate>
  		</ListBox.Resources>
  		<ListBox.ItemTemplate>
  			<StaticResource ResourceKey="GraphOptionsDataTemplate"/>
  		</ListBox.ItemTemplate>
  	</ListBox>
    </Grid>
</controls:ChildWindow>